define(function(require, exports, module) {

  // var Backbone = require('backbone');
  var $ = require('jquery');
  // var _ = require('underscore');
  // var jsonview = require('jsonview');
  var tmpl = require('text!../tmpl.html');
  var geo3dBarOption = require('v/graph/option/geo3d-bar')

  require('echarts-gl')
  var echarts = require('echarts')
  var chinaJson = require('json!/npm/show-react16-r15.20-uyuncomponents/node_modules/echarts/map/json/china.json');
  echarts.registerMap('china', chinaJson);

  function main() {
    var $app = $('<div id="app">');
    $('#main').html($app);

    $app.append(tmpl);

    var myChart = echarts.init(document.getElementById('chart'));
    myChart.setOption(geo3dBarOption)
  }

  return main;
})
